<template>
	<view class="comment">
		<view class="hearder">
			<view class="hearder-left">
				<u-image width="80rpx" height="80rpx" shape="circle" src="/static/dome/touxiang.jpg"></u-image>
				<view class="title">
					<view class="username">有梦可追</view>
					<text class="date">1天前</text>
				</view>
			</view>
			<view>
				<u-button type="error" size="mini">关注</u-button>
			</view>
		</view>
		<view class="wenzi">
			国四CAT ® 320 GX 比国三320 GX动作更快，产量提高显著；无需使用尿素溶液，可靠的尾气后处理装置，生命周期内无需维护，而且无需专门停车再生，从而增加了作业时间，整机配置简洁可靠。
		</view>
		<view class="tupian">
			<u-image width="600rpx" height="400rpx" src="/static/dome/wujueji.webp"></u-image>
		</view>
		<!-- 评论 -->
		<view class="pinglun">
			<view class="pinglun-left">评论 1</view>
			<view class="pinglun-right">
				<text>1 赞</text>
				<text class="symbol">|</text>
				<text>0 转发</text>
			</view>
		</view>
		<!-- 评论信息 -->
		<view class="information">
			<view class="hearder">
				<view class="hearder-left">
					<u-image width="60rpx" height="60rpx" shape="circle" src="/static/dome/touxiang.jpg"></u-image>
					<view class="username">有梦可追</view>
				</view>
				<view class="hearder-right">
					<u-icon class="icon" name="thumb-up" label="1" size="36rpx"></u-icon>
					<u-icon name="thumb-up" size="36rpx"></u-icon>
				</view>
			</view>
			<!-- 回复 -->
			<view class="tet">
				<view>加油!</view>
				<view class="huifu">回复 <u-icon name="arrow-right"></u-icon>
				</view>
				<view class="reply">
					<view class="reply-item">
						<text class="username">高手在民间:</text>
						<text>不错!</text>
					</view>
					<view class="reply-item">
						<text class="username">日出东方:</text>
						<text>很好!</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 底部 -->
		<view class="footer">
			<view class="btn">
				<u-icon class="btn-icon" name="edit-pen-fill"></u-icon>友善评论
			</view>
			<u-icon size="40rpx" name="chat"></u-icon>
			<u-icon size="40rpx" name="star"></u-icon>
			<u-icon size="40rpx" name="thumb-up"></u-icon>
			<u-icon size="40rpx" name="zhuanfa"></u-icon>
		</view>

	</view>
</template>

<script>
</script>

<style lang="scss" scoped>
	.comment {
		padding: 20rpx;


		.hearder {
			display: flex;
			justify-content: space-between;

			.hearder-left {
				display: flex;

				.title {
					margin-left: 20rpx;

					.username {
						font-weight: 700;
					}

					.date {
						font-size: 24rpx;
						color: #bebebe;
					}
				}
			}
		}

		// wenzi
		.wenzi {
			margin: 20rpx 0;
		}

		// 评论
		.pinglun {
			display: flex;
			justify-content: space-between;
			margin: 30rpx 0;
			// background-color: #ff6a92;

			.pinglun-left {
				font-size: 32rpx;
				font-weight: 700;
			}

			.pinglun-right {
				color: #acacac;

				.symbol {
					margin: 0 10rpx;
				}
			}
		}

		// 评论信息
		.information {


			.hearder {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.hearder-left {
					display: flex;
					align-items: center;

					.username {
						font-weight: 700;
						margin-left: 20rpx;
					}
				}

				.hearder-right {
					.icon {
						margin-right: 40rpx;
					}
				}
			}

			// tet
			.tet {
				padding-left: 80rpx;

				.huifu {
					margin-top: 20rpx;
					width: 100rpx;
					border-radius: 30rpx;
					text-align: center;
					background-color: #eeeeee;
				}

				.reply {
					margin-top: 20rpx;
					padding: 20rpx;
					background-color: #f8f8f8;

					.reply-item {
						margin-bottom: 10rpx;

						.username {
							font-weight: 700;
							margin-right: 10rpx;
						}
					}
				}
			}

		}

		// 底部
		.footer {
			padding: 10rpx 0;
			width: 100%;
			position: fixed;
			bottom: 0;
			left: 0;
			display: flex;
			justify-content: space-around;

			.btn {
				padding-left: 10rpx;
				width: 300rpx;
				height: 60rpx;
				line-height: 60rpx;
				border-radius: 30rpx;
				background-color: #f2f2f2;

				.btn-icon {
					margin-right: 10rpx;
				}

			}
		}
	}
</style>
